package dao;

import java.io.File;

import bean.CommentBean;

//TODO
/**
 * Class responsible for the operations of CommentDAO
 * @author Otavio Lima, Laura Dutra
 *
 */

public class CommentDAO extends AbstractDAO<CommentBean> {

	private static final File DB = new File("./CommentDB.xml");
	private static CommentDAO instance;


	/**
	 * Constructor
	 */
	private CommentDAO(){

	}

	/**
	 * Singleton 
	 * @return instance of PostDAO
	 */

	public static synchronized CommentDAO getInstance(){
		if(instance == null)
			instance = new CommentDAO();

		return instance;
	}

	@Override
	protected File getDBFileName() {
		return DB;
	}

}	 


